home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / dirut / chmod2.zip / CHMOD.DOC < prev    next >
Text File  |  1987-01-14  |  3KB  |  86 lines

  1. CHMOD(1)                    MS DOS USER COMMANDS                    CHMOD(1)
  2.  
  3.  
  4. NAME 
  5.         chmod
  6.  
  7. SYNOPSIS 
  8.         chmod [=+-][r][h][s][a] file ...
  9.  
  10. DESCRIPTION 
  11.     
  12.          Changes the attributes of 'file'. The file attributes can either 
  13.     be set (=),  or attributes can  be added (+)  or removed (-) from the
  14.     the current attribute. If no attributes  are specified, then the file
  15.     is marked 'normal' i.e. no attributes set except the archive bit.
  16.  
  17.      Attributes are :
  18.          r    -    readonly
  19.          h    -    hidden
  20.          s    -    system
  21.          a    -    archive
  22.  
  23.         Normally a file has its Archive bit set whenever it is written to
  24.     disk. Dos backup turns this bit off after it has backed up a file. So 
  25.     that files which have not changed since the last backup will have the
  26.     Archive bit off.
  27.  
  28.         More than one file can  be specified or DOS wildcards may be used
  29.     but of course hidden files will not be included in wild card searches. 
  30.     To change a hidden file its name must be given explicitly. 
  31.  
  32. EXAMPLES
  33.  
  34.    chmod =rha test.c    -> sets readonly, hidden and archive 
  35.    chmod *.c +ar a:*.c  -> adds readonly + archive status for all .c 
  36.                            files on current directory and on a: drive
  37.    chmod -rh test         -> removes readonly and hidden status
  38.  
  39.  
  40. SEE ALSO
  41.     
  42.     attrib in the DOS manual (versions 3.x i believe),  it is a restricted
  43. version of chmod.
  44.  
  45. COMMENTS
  46.     
  47.         The command parser attempts to  be sensible,  so that putting the
  48.     attributes after the files or whtever should work as expected. 
  49.     
  50.         This is modeled after the unix command of the same name. 
  51.  
  52. NO WARRANTY
  53.  
  54.         This program is provided as is without warranty of any kind,
  55.     expressed or implied, including, but not limited to, the implied
  56.     warranties of merchantability and fitness for a particular purpose.
  57.     The entire risk of using this software is with you. Should this
  58.     program prove defective, you assume the cost of all neccessary 
  59.     servicing, repairs or corrections.
  60.  
  61.         In no event will I be liable for damages, including any lost 
  62.     profits, lost monies, or other special, incidental or consequential 
  63.     damages arising out of the use or inability to use this software, 
  64.     including but not limited to loss of data or data being rendered 
  65.     inaccurate or losses sustained by third parties or a failure of 
  66.     the program to operate for any reason, or for any claim by any 
  67.     other party.
  68.  
  69. LICENSE
  70.  
  71.         Anyone may copy and use this program and circulate it freely 
  72.     provided that,  under NO circumstances whatsoever may anyone charge
  73.     anything or obligate anyone for it in any way. Furthermore, this 
  74.     notice must accompany any and all copies that are being passed on 
  75.     to anyone else. This program may not be included with any commercial 
  76.     product without explicit permission from the author.
  77.  
  78. I retain all rights to this program.         (c) Gene Cohler, January 1987
  79.  
  80. Newman Lab        cohler@lnssun3.tn.cornell.edu
  81. Cornell Univ      jbvy@cornella.bitnet
  82. Ithaca NY 14853    
  83.  
  84.  
  85.  
  86.